/**
 * 
 */
package com.ms.service.module.baccarat.db;

import com.ms.service.module.gamelog.db.GameLogDAO;
import com.xpec.c4.service.module.task.TaskAsyncCommand;

/**
 * 百家樂從 redis 刪除指定的 player log
 * 
 * @author TW15010
 */
public class BacrDeletePlayerLogFromRedisAsync extends TaskAsyncCommand {
	/**
	 * 牌桌 id
	 */
	private String tableId;

	/**
	 * 局號
	 */
	private String roundNumber;

	/**
	 * player id
	 */
	private String playerId;

	public BacrDeletePlayerLogFromRedisAsync(String tableId, String roundNumber, String playerId) {
		super();
		this.tableId = tableId;
		this.roundNumber = roundNumber;
		this.playerId = playerId;
	}

	@Override
	public void asyncExecute() throws Exception {
		String key = BacrDAO.createPlayerLogKeyOnRedis(tableId, roundNumber, playerId);
		GameLogDAO.deleteDataFromRedis(key);
	}

	@Override
	public void execute() throws Exception {
	}
}
